[index]

MouseH Function

Syntax: the mouseH or mouseH()

Description

The mouseH function returns the current horizontal location of the mouse. The mouse's location is measured in pixels from the left edge of the card window to the mouse pointer.

Notes

As indicated in the example, the mouseH function can be used in a handler that changes the shape of the cursor, depending on its location on the screen.

Examples

Add the following handler to the script of the current card. When the mouse is pressed while the mouse pointer is in the 75-pixel wide strip along the left side of the card, the pointer becomes an I-beam cursor. Otherwise, the cursor is an arrow. on mouseDown if the mouseH < 75 then set the cursor to ibeam else set the cursor to arrow end if
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.